-
Notifications
You must be signed in to change notification settings - Fork 101
✨ Define SemanticSegmentor
with the New EngineABC
#866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Define SemanticSegmentor
with the New EngineABC
#866
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev-define-engines-abc #866 +/- ##
==========================================================
+ Coverage 91.33% 94.72% +3.38%
==========================================================
Files 73 73
Lines 9375 9235 -140
Branches 1229 1208 -21
==========================================================
+ Hits 8563 8748 +185
+ Misses 776 452 -324
+ Partials 36 35 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
for more information, see https://pre-commit.ci
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
- Use `input_resolutions` instead of resolution to make engines outputs compatible with ioconfig. - Uses input resolution as a list of dictionaries on units and resolution.
- Use `input_resolutions` instead of resolution to make engines outputs compatible with ioconfig. - Uses input resolution as a list of dictionaries on units and resolution.
…mentor # Conflicts: # tests/engines/test_engine_abc.py # tests/engines/test_patch_predictor.py # tiatoolbox/models/engine/engine_abc.py # tiatoolbox/models/engine/io_config.py # tiatoolbox/models/engine/patch_predictor.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done an initial review, looks nice overall but I found a few issues that need addressing before it could be merged.
# Conflicts: # tests/models/test_dataset.py
fe21c69
to
3a47fe1
Compare
…entor # Conflicts: # tiatoolbox/models/engine/semantic_segmentor.py
for more information, see https://pre-commit.ci
…c.Callable` into a type-checking block
# Conflicts: # tests/test_utils.py
…nto dev-define-semantic-segmentor
Summary of Changes
Major Additions
Dask Integration:
dask
as a dependency and integrated Dask arrays and lazy computation throughout the engine and patch predictor code.Zarr Output Support:
SemanticSegmentor Engine:
SemanticSegmentor
engine with Dask/Zarr support and new test coverage (test_semantic_segmentor.py
).semantic_segmentor
and removed the oldsemantic_segment
CLI.Enhanced CLI and Config:
Utilities and Validation:
DimensionMismatchError
).Changes to
kwarg
memory-threshold
num-loader-workers
andnum-postproc-workers
intonum-workers
cache_mode
as cache mode is automatically handled.Major Removals/Refactors
Removed Old CLI and Redundant Code:
semantic_segment.py
CLI and replaced it withsemantic_segmentor.py
.Refactored Model and Dataset APIs:
Test Cleanup:
API Consistency:
Notable File Changes
New:
tiatoolbox/cli/semantic_segmentor.py
tests/engines/test_semantic_segmentor.py
Removed:
tiatoolbox/cli/semantic_segment.py
Heavily Modified:
engine_abc.py
,patch_predictor.py
,semantic_segmentor.py
Impact